gnttab: never create host mapping unless asked to
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Jun 2017 12:46:01 +0000 (14:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Jun 2017 12:46:01 +0000 (14:46 +0200)
commit56f2ab5b970f1b18cf2019df4bf27db544cda6ea
tree3b27205b2e8c11a161e66e8a70920aeda29ff315
parent8fdfcb2b6bcd074776560e76843815f124d587f1
gnttab: never create host mapping unless asked to

We shouldn't create a host mapping unless asked to even in the case of
mapping a granted MMIO page. In particular the mapping wouldn't be torn
down when processing the matching unmap request.

This is part of XSA-224.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c